//
//  YBWIAPAppDelegate.m
//  YBWIAPModule
//
//  Created by ZXJ on 12/12/2018.
//  Copyright (c) 2018 ZXJ. All rights reserved.
//

#import "YBWIAPAppDelegate.h"
#import "YBWBaseMeditor+YBWIAPModule.h"
#import "YBWNetworking.h"
#import "YBWContext.h"
#import "YBWIAPViewController.h"
#import "YBWBaseMeditor+YBWAccountModule.h"


@implementation YBWIAPAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [YBWNetConfiguration setupConfigBaseIP:[YBWContext context].baseUrl];
    [[YBWBaseMeditor sharedInstance] YBWMediator_UserInitialize];
    [YBWNetConfiguration setupConfigGeneralHeader:@{@"X-Requested-With":@"XMLHttpRequest"}];

    _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    _window.backgroundColor = [UIColor whiteColor];

    UIViewController * controller = [[YBWIAPViewController alloc] init];
    _window.rootViewController = [[UINavigationController alloc] initWithRootViewController:controller];
    [_window makeKeyAndVisible];

    return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application
{
   
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
    
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
    
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
   
}

- (void)applicationWillTerminate:(UIApplication *)application
{

}

@end
